import request from '@/utils/request'

// 查询广告收入列表
export function listTodayAmount(query) {
  return request({
    url: '/system/todayAmount/list',
    method: 'get',
    params: query
  })
}

// 查询广告收入详细
export function getTodayAmount(id) {
  return request({
    url: '/system/todayAmount/' + id,
    method: 'get'
  })
}

// 新增广告收入
export function addTodayAmount(data) {
  return request({
    url: '/system/todayAmount',
    method: 'post',
    data: data
  })
}

// 修改广告收入
export function updateTodayAmount(data) {
  return request({
    url: '/system/todayAmount',
    method: 'put',
    data: data
  })
}

// 删除广告收入
export function delTodayAmount(id) {
  return request({
    url: '/system/todayAmount/' + id,
    method: 'delete'
  })
}
